package com.youlai.boot.form.model.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.youlai.boot.common.base.BaseEntity;
import lombok.*;

import java.io.Serial;
import java.time.LocalDateTime;

/**
 * 任务参与者信息表
 *
 * @author fwj
 * @since 2025/11/7
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("form_collect_target")
public class FormCollectTarget extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 任务ID(form_collect_task.id)
     */
    private Long taskId;

    /**
     * 用户ID或部门ID2
     */
    private Long targetId;

    /**
     * 目标名称
     */
    private String targetName;

    /**
     * 填报状态：0待填 1已填, 2逾期, 3跳过
     */
    private Integer submitStatus;

    /**
     * 已提交次数
     */
    private Integer submitCount;

    /**
     * 最后一次提交时间
     */
    private LocalDateTime lastSubmitTime;
}
